<?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro 
    "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>

<xsl:template name="bee_tree">
<xsl:param name="top" as="element()" />
<xsl:param name="callw" />
<ul>
  <xsl:for-each select="$top/children/value">
    <li>
    <xsl:variable name="pom" select="concat('lnk_', value/id)" />
    <xsl:variable name="lid" select="//*[name(.)=$pom]" as="element()" />
    <xsl:apply-templates select="." mode="link" />
    <xsl:call-template name="bee_tree">
    	<xsl:with-param name="top" as="element()" select="." />
    </xsl:call-template>
    </li>
  </xsl:for-each>
</ul>
</xsl:template>

<xsl:template match="value" mode="link">
<span  style="cursor:pointer">
  <xsl:attribute name="onClick">loadEvt2Ajax(this, 'showItem','id=<xsl:value-of select="value/id"/>', '#main')</xsl:attribute>
   <xsl:value-of select="value/id"/>&nbsp;
   <xsl:value-of select="value/name"/>
</span>
</xsl:template>
</xsl:stylesheet>